package com.zjitc.serviceedu.service;

import com.zjitc.serviceedu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zjitc.serviceedu.entity.EduTeacher;
import com.zjitc.serviceedu.entity.vo.CourseInfoVo;
import com.zjitc.serviceedu.entity.vo.CoursePublishVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 赵诚挚
 * @since 2024-09-20
 */
public interface EduCourseService extends IService<EduCourse> {

    int saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(Long courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublishInfo(Long id);

    boolean removeByCouresId(Long id);

    List<EduCourse> getJavaList();

    List<EduCourse> getCssList();

    List<EduCourse> getHotList();

    List<EduTeacher> getTeacherCourse(Long id);

    boolean updateViewCount(Long courseId);

    boolean updateBuyCount(Long courseId);
}
